package com.oa.framework.acl.url.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.oa.common.tree.TreeNode;
import com.oa.framework.acl.ResourceType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.util.CollectionUtils;

import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
 * 资源节点
 * @author cuichao
 */
@Getter
@Setter
@TableName(value = "acl_system_resource")
public class ResourceNode implements Serializable {

    /**
     *资源主键
     */
    @JsonSerialize(using=ToStringSerializer.class)
    @TableId(value = "resource_id" ,type = IdType.ASSIGN_ID)
    private Long resourceId;
    /**
     * 资源名称
     */
    @TableField(value = "resource_name")
    private String resourceName;
    /**
     * 资源管理key
     */
    @TableField(value = "management_key")
    private Long managementKey;
    /**
     *权限
     */
    @TableField(value = "permission")
    private String permission;


}
